//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.exam.domain;

import com.ruoyi.live.base.domain.LiveExamObjectiveScoreDetail;

import java.util.ArrayList;
import java.util.List;

public class ScoreObjDetail {
    private Long productId;
    private String productName;
    private List<LiveExamObjectiveScoreDetail> list = new ArrayList();

    public ScoreObjDetail() {
    }

    public Long getProductId() {
        return this.productId;
    }

    public String getProductName() {
        return this.productName;
    }

    public List<LiveExamObjectiveScoreDetail> getList() {
        return this.list;
    }

    public ScoreObjDetail setProductId(final Long productId) {
        this.productId = productId;
        return this;
    }

    public ScoreObjDetail setProductName(final String productName) {
        this.productName = productName;
        return this;
    }

    public ScoreObjDetail setList(final List<LiveExamObjectiveScoreDetail> list) {
        this.list = list;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ScoreObjDetail)) {
            return false;
        } else {
            ScoreObjDetail other = (ScoreObjDetail)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$productId = this.getProductId();
                    Object other$productId = other.getProductId();
                    if (this$productId == null) {
                        if (other$productId == null) {
                            break label47;
                        }
                    } else if (this$productId.equals(other$productId)) {
                        break label47;
                    }

                    return false;
                }

                Object this$productName = this.getProductName();
                Object other$productName = other.getProductName();
                if (this$productName == null) {
                    if (other$productName != null) {
                        return false;
                    }
                } else if (!this$productName.equals(other$productName)) {
                    return false;
                }

                Object this$list = this.getList();
                Object other$list = other.getList();
                if (this$list == null) {
                    if (other$list != null) {
                        return false;
                    }
                } else if (!this$list.equals(other$list)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ScoreObjDetail;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $productId = this.getProductId();
        int result1 = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $productName = this.getProductName();
        result1 = result * 59 + ($productName == null ? 43 : $productName.hashCode());
        Object $list = this.getList();
        result1 = result * 59 + ($list == null ? 43 : $list.hashCode());
        return result1;
    }

    public String toString() {
        return "ScoreObjDetail(productId=" + this.getProductId() + ", productName=" + this.getProductName() + ", list=" + this.getList() + ")";
    }
}
